home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / longfile / form1.frm < prev    next >
Text File  |  1996-08-12  |  2KB  |  73 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Long Filename Sample"
  4.    ClientHeight    =   5820
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1770
  7.    ClientWidth     =   7365
  8.    Height          =   6510
  9.    Left            =   1035
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   5820
  12.    ScaleWidth      =   7365
  13.    Top             =   1140
  14.    Width           =   7485
  15.    Begin TextBox Text1 
  16.       FontBold        =   -1  'True
  17.       FontItalic      =   0   'False
  18.       FontName        =   "Arial"
  19.       FontSize        =   8.25
  20.       FontStrikethru  =   0   'False
  21.       FontUnderline   =   0   'False
  22.       Height          =   5835
  23.       Left            =   0
  24.       MultiLine       =   -1  'True
  25.       ScrollBars      =   2  'Vertical
  26.       TabIndex        =   0
  27.       Top             =   0
  28.       Width           =   7395
  29.    End
  30.    Begin Menu mnuFile 
  31.       Caption         =   "&File"
  32.       Begin Menu mnuFOpen 
  33.          Caption         =   "&Open"
  34.       End
  35.       Begin Menu mnuFSave 
  36.          Caption         =   "&Save"
  37.       End
  38.       Begin Menu mnuFExit 
  39.          Caption         =   "E&xit"
  40.       End
  41.    End
  42. End
  43. Option Explicit
  44.  
  45. Sub mnuFExit_Click ()
  46.  
  47.    Unload Me
  48.  
  49. End Sub
  50.  
  51. Sub mnuFOpen_Click ()
  52.  
  53.    LF.Action = 1
  54.    GetLongFilename
  55.    If LF.Action = -1 Then Exit Sub
  56.  
  57.    OpenFile
  58.       
  59.  
  60. End Sub
  61.  
  62. Sub mnuFSave_Click ()
  63.    
  64.    LF.Action = 2
  65.    LF.Filename = gLongFilename
  66.    GetLongFilename
  67.    If LF.Action = -1 Then Exit Sub
  68.  
  69.    SaveFileAs
  70.    
  71. End Sub
  72.  
  73.